<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Album extends Model
{
    public $timestamps = false;
    protected $fillable = ['name','photo_num','create_time','thumb','is_top'];

    public function getUsers(){
        return $this->belongsToMany('App\Http\Models\User','user_album','album_id','user_id');
    }
}
